from django.db import models


# Create your models here.

class User(models.Model):
    id = models.AutoField(primary_key=True)
    name = models.CharField(max_length=128)
    pwd = models.CharField(max_length=128)


class Book(models.Model):
    id = models.AutoField(primary_key=True)
    name = models.CharField(max_length=128)
    pirce = models.DecimalField(max_digits=5, decimal_places=2)

    def __str__(self):
        return "name: {}".format(self.name)
